import { Base } from '../../utils/base.js';

class Yclist extends Base {
  constructor() {
    super();
  }

  getSousuo(typeid1, typeid2, wxcity, wxprovince, callBack) {
    var param = {
      url: 'getSousuo?typeid1=' + typeid1 + '&typeid2=' + typeid2 + '&wxcity=' + wxcity + '&wxprovince=' + wxprovince,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  } //获取总条数


  getSousuoCount(typeid1, typeid2, wxcity, wxprovince, callBack) {
    var param = {
      url: 'getSousuoCount?typeid1=' + typeid1 + '&typeid2=' + typeid2 + '&wxcity=' + wxcity + '&wxprovince=' + wxprovince,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getFenLei(typeid1, typeid2, wxcity, wxprovince, callBack) {
    var param = {
      url: 'getFenLei?typeid1=' + typeid1 + '&typeid2=' + typeid2 + '&wxcity=' + wxcity + '&wxprovince=' + wxprovince,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  } //获取总条数


  getFenLeiCount(typeid1, typeid2, wxcity, wxprovince, callBack) {
    var param = {
      url: 'getFenLeiCount?typeid1=' + typeid1 + '&typeid2=' + typeid2 + '&wxcity=' + wxcity + '&wxprovince=' + wxprovince,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getPaixu(typeid1, typeid2, typeid3, typeid4, shuliang, shuliang2, wxcity, wxprovince, callBack) {
    var param = {
      url: 'getPaixu?typeid1=' + typeid1 + '&typeid2=' + typeid2 + '&typeid3=' + typeid3 + '&typeid4=' + typeid4 + '&shuliang=' + shuliang + '&shuliang2=' + shuliang2 + '&wxcity=' + wxcity + '&wxprovince=' + wxprovince,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getPaixuCount(typeid1, typeid2, typeid3, typeid4, shuliang, shuliang2, callBack) {
    var param = {
      url: 'getPaixuCount?typeid1=' + typeid1 + '&typeid2=' + typeid2 + '&typeid3=' + typeid3 + '&typeid4=' + typeid4 + '&shuliang=' + shuliang + '&shuliang2=' + shuliang2,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  } //搜索页面


  getSearchFor1(datarow, callBack) {
    //console.log(datarow);
    var params = {
      url: 'getSearchFor1?datarow=' + datarow,
      sCallBack: function (res) {
        //console.log(res);
        callBack && callBack(res);
      }
    };
    this.request(params);
  }

}

export { Yclist };